package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_xt_file 附件表 
 **/
@SuppressWarnings("serial")
public class TbXtFile extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**描述(file_desc)*/
    private String fileDesc;

    /**路径(file_path)*/
    private String filePath;

    /**文件名(file_name)*/
    private String fileName;

    /**文件大小(file_size)*/
    private Long fileSize;

    /**文件名称(file_title)*/
    private String fileTitle;

    /**业务主键(biz_id)*/
    private Long bizId;

    /**业务参数(biz_args)*/
    private String bizArgs;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbXtFile() {
    }

    public TbXtFile(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbXtFile setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getFileDesc() {
        return fileDesc;
    }

    public TbXtFile setFileDesc(String fileDesc) {
        addOriginalData("file_desc", this.fileDesc, fileDesc);
        this.fileDesc = fileDesc;
        return this;
    }

    public String getFilePath() {
        return filePath;
    }

    public TbXtFile setFilePath(String filePath) {
        addOriginalData("file_path", this.filePath, filePath);
        this.filePath = filePath;
        return this;
    }

    public String getFileName() {
        return fileName;
    }

    public TbXtFile setFileName(String fileName) {
        addOriginalData("file_name", this.fileName, fileName);
        this.fileName = fileName;
        return this;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public TbXtFile setFileSize(Long fileSize) {
        addOriginalData("file_size", this.fileSize, fileSize);
        this.fileSize = fileSize;
        return this;
    }

    public String getFileTitle() {
        return fileTitle;
    }

    public TbXtFile setFileTitle(String fileTitle) {
        addOriginalData("file_title", this.fileTitle, fileTitle);
        this.fileTitle = fileTitle;
        return this;
    }

    public Long getBizId() {
        return bizId;
    }

    public TbXtFile setBizId(Long bizId) {
        addOriginalData("biz_id", this.bizId, bizId);
        this.bizId = bizId;
        return this;
    }

    public String getBizArgs() {
        return bizArgs;
    }

    public TbXtFile setBizArgs(String bizArgs) {
        addOriginalData("biz_args", this.bizArgs, bizArgs);
        this.bizArgs = bizArgs;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbXtFile setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbXtFile setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",fileDesc:" + fileDesc + ",filePath:" + filePath + ",fileName:" + fileName + ",fileSize:" + fileSize + ",fileTitle:" + fileTitle + ",bizId:" + bizId + ",bizArgs:" + bizArgs + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbXtFile) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
